import { getBanner } from '@/api/home'
import { ref } from 'vue'
export function useBanner () {
  // 获取轮播图列表功能
  const bannerList = ref([])
  async function getBannerList () {
    const res = await getBanner()
    bannerList.value = res.data.result
  }
  getBannerList()
  return { bannerList }
}
